<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*解决闪屏的问题*/
        [v-clock]{
            display: none;
        }
    </style>
</head>
<body>
<div id="app" v-clock>
    <div>{{info.name}}</div>
    <div>{{info.address.area}}</div>
    <a v-bind:href="info.url">点我！</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
<!--axios的cnd-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript">
    var vm=new Vue({
        el:"#app",
        data(){//不能写成'data：'它是属性
            return{
                info:{
                    name:null,
                    url:null,
                    address:{
                        province:null,
                        area:null,
                        Country:null
                    }
                }
            }
        },
        mounted(){
            axios.get('../data.json').then(response=>(console.log(response.data)));
            axios.get('../data.json').then(response=>(this.info=response.data));
        }
    });
</script>
</body>
</html>